﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo02
{
    class Square:Shape
    {
        protected int sideLen;
        public int SideLen
        {
            get { return this.sideLen; }
            set { this.sideLen = value; }
        }
        public Square() { }
        public Square(int sideLen)
        {
            this.sideLen = sideLen;
        }
        public override void GetArea()
        {
            base.GetArea();
            Console.WriteLine(sideLen*sideLen);
        }
    }
}
